package com.lihuinch.ti4j.chap5.practice;

import java.util.Arrays;

/**
 * 有关可变参数的相关实验
 *
 * @author lihuinch
 * @date 2018/1/16
 */
public class VarargsTest {

    static void f(Integer...args) {
        System.out.println(args.getClass());
        System.out.println(Arrays.toString(args));
    }

    static void f(int...args) {
        System.out.println(args.getClass());
        System.out.println(Arrays.toString(args));
    }

    public static void main(String[] args) {
/*
        都不行
        f(new Integer(1));
        f(1);
        f();
*/

    }
}
